package com.shawn.integeration.business;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @author shawn
 * @description:
 * @date 2024/1/16
 */
@Slf4j
@Service
public class FixedDelayTask {
    private static int count1 = 1;

    @Scheduled(fixedDelay = 3000)
    public void fixedDelay() {
        log.info(String.format("第%s次执行", count1++));
    }
}
